require 'piston/plugin/help/command/show_about'

module Piston
  class Plugin
    def view(xaml_builder)
      xaml_file = File.join(File.expand_path(File.dirname(__FILE__)), 'view/menu_about.xaml')
      xaml_builder.append('//xaml:MenuItem[@Header="_Help"]', xaml_file)
    end

    def commands
      {"ShowAbout" => Piston::Help::ShowAbout.new}
    end
  end
end